package demo0512;


import java.io.IOException;
import java.util.Scanner;

public class Test {
    public static void test(String fileName, String data) throws IOException {
        FileWriter fileWriter = new FileWriter(fileName);
        BufferedWriter bufferedWriter = new BufferedWriter(fileWriter);
        bufferedWriter.write(data);
        bufferedWriter.close();
    }


    public static void main(String[] args) {
        Scanner scanner = new Scanner(System.in);
        String fileName = scanner.next();
        String data = scanner.next();
        test(fileName, data);
    }
}